import request from '@/utils/request'

// 查询套餐订单列表
export function listMealOrder(query) {
  return request({
    url: '/meal/mealOrder/list',
    method: 'get',
    params: query
  })
}

// 查询套餐订单详细
export function getMealOrder(outTradeNo) {
  return request({
    url: '/meal/mealOrder/' + outTradeNo,
    method: 'get'
  })
}

// 新增套餐订单
export function addMealOrder(data) {
  return request({
    url: '/meal/mealOrder',
    method: 'post',
    data: data
  })
}

// 修改套餐订单
export function updateMealOrder(data) {
  return request({
    url: '/meal/mealOrder',
    method: 'put',
    data: data
  })
}

// 删除套餐订单
export function delMealOrder(outTradeNo) {
  return request({
    url: '/meal/mealOrder/' + outTradeNo,
    method: 'delete'
  })
}
